/**
 * 
 */
package com.skood.system.listeners;

import javax.servlet.ServletContext;

import org.springframework.web.context.ServletContextAware;

import com.skood.util.Env;

/**
 * @author keege
 * Spring初始化配置
 */
public class SysConfigInitListener implements ServletContextAware{

	private Env env;
	private ServletContext servletContext;

	public void init(){
		servletContext.setAttribute("staticURL", env.getStaticURL());
		servletContext.setAttribute("dynamicURL", env.getDynamicURL());
	}
	@Override
	public void setServletContext(ServletContext servletContext) {
		// TODO Auto-generated method stub
		this.servletContext = servletContext;
	}
	 
	public void setEnv(Env env) {
		this.env = env;
	}
	
}
